package com.shlh.saas.controller;

import com.shlh.saas.common.Result;
import com.shlh.saas.entity.BusinessPopups;
import com.shlh.saas.service.BusinessPopupsService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 业务弹窗控制器
 */
@RestController
@RequestMapping("/popups")
public class BusinessPopupsController {
    @Resource
    private BusinessPopupsService popupsService;

    @GetMapping("")
    public Result getPopups(@RequestParam("status") Long status, @RequestParam("lang") String lang) {
        BusinessPopups popups = popupsService.getPopups(status, lang);
        return Result.success(popups);
    }
}
